// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.ScanShipment;
import com.fowo.api.model.scan.shipment.ScanShipmentItemVo;
import com.fowo.api.model.scan.shipment.ScanShipmentSearchParamPo;
import com.fowo.api.model.scan.shipment.ScanShipmentVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ScanShipmentMapper extends BaseMapper<ScanShipment> {
  Page<ScanShipmentItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") ScanShipmentSearchParamPo search
  );
  List<OptionItem<ScanShipmentItemVo>> searchOptions(
    @Param("search") ScanShipmentSearchParamPo search
  );
  List<ScanShipmentItemVo> search(
    @Param("search") ScanShipmentSearchParamPo search
  );
  Date searchLastUpdateTime(@Param("search") ScanShipmentSearchParamPo search);
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") ScanShipmentSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") ScanShipmentSearchParamPo search);
  Long getIdByOrderId(@Param("orderId") String orderId);

  List<Long> getIdsByOrderId(@Param("list") List<String> list);

  String getOrderIdById(@Param("id") Long id);

  List<Map<String, Object>> getOrderIdByIds(@Param("ids") List<Long> ids);
  ScanShipmentVo selectVoById(@Param("id") Long id);
  /**
   * 一单一件验货
   */
  List<ScanShipmentItemVo> orderOneProduct(
    @Param("search") ScanShipmentSearchParamPo search
  );

  /**
   * 获取一单一件验货编号列表
   */
  List<Long> orderOneProductIds(
    @Param("search") ScanShipmentSearchParamPo search
  );

  /**
   * 获取一单一件验货的总数
   */
  Long orderOneProductCount(@Param("search") ScanShipmentSearchParamPo search);

  /**
   * 一单一件验货分页
   */
  Page<ScanShipmentItemVo> orderOneProductPage(
    @Param("page") Page page,
    @Param("search") ScanShipmentSearchParamPo search
  );
  Date orderOneProductLastUpdateTime(
    @Param("search") ScanShipmentSearchParamPo search
  );
  /**
   * 一单多件验货
   */
  List<ScanShipmentItemVo> orderMoreProduct(
    @Param("search") ScanShipmentSearchParamPo search
  );

  /**
   * 获取一单多件验货编号列表
   */
  List<Long> orderMoreProductIds(
    @Param("search") ScanShipmentSearchParamPo search
  );

  /**
   * 获取一单多件验货的总数
   */
  Long orderMoreProductCount(@Param("search") ScanShipmentSearchParamPo search);

  /**
   * 一单多件验货分页
   */
  Page<ScanShipmentItemVo> orderMoreProductPage(
    @Param("page") Page page,
    @Param("search") ScanShipmentSearchParamPo search
  );
  Date orderMoreProductLastUpdateTime(
    @Param("search") ScanShipmentSearchParamPo search
  );
  /**
   * 称重
   */
  List<ScanShipmentItemVo> weigh(
    @Param("search") ScanShipmentSearchParamPo search
  );

  /**
   * 获取称重编号列表
   */
  List<Long> weighIds(@Param("search") ScanShipmentSearchParamPo search);

  /**
   * 获取称重的总数
   */
  Long weighCount(@Param("search") ScanShipmentSearchParamPo search);

  /**
   * 称重分页
   */
  Page<ScanShipmentItemVo> weighPage(
    @Param("page") Page page,
    @Param("search") ScanShipmentSearchParamPo search
  );
  Date weighLastUpdateTime(@Param("search") ScanShipmentSearchParamPo search);
  /**
   * 发货
   */
  List<ScanShipmentItemVo> shipment(
    @Param("search") ScanShipmentSearchParamPo search
  );

  /**
   * 获取发货编号列表
   */
  List<Long> shipmentIds(@Param("search") ScanShipmentSearchParamPo search);

  /**
   * 获取发货的总数
   */
  Long shipmentCount(@Param("search") ScanShipmentSearchParamPo search);

  /**
   * 发货分页
   */
  Page<ScanShipmentItemVo> shipmentPage(
    @Param("page") Page page,
    @Param("search") ScanShipmentSearchParamPo search
  );
  Date shipmentLastUpdateTime(
    @Param("search") ScanShipmentSearchParamPo search
  );
}
